package light.head.dao.inv;

import java.util.List;

import light.head.framework.base.BaseDAO;
import light.head.model.inv.InvReturnItem;

import org.springframework.stereotype.Service;
@Service
public class InvReturnItemDAO extends BaseDAO<InvReturnItem, Integer>{
	private final static String sql_findByRc = "FROM InvReturnItem iri WHERE iri.deleted = 0 AND iri.rc = ?";
	/**
	 * 通过零售单编号获取序列号
	 * @param isc			零售单编号
	 */
	public List<InvReturnItem> findByRc(Integer rc) {
		if (null == rc) return null;
		return find(sql_findByRc, null, null, rc);
	}
}
